<?php

namespace app\services;

use plugin\admin\app\model\Banner;

class BannerService
{
    public static function list($data)
    {
        return Banner::select(['id', 'img_url', 'link'])->where('position_id', $data['position_id'])->where('is_show', 1)->orderBy('sort')->get()->toArray();

    }
}